import request from '@/utils/request.js'

//获取咨询师
export const listCouService=(data)=>{
    return request.post('/appointment/listCou',data)
}


//预约
export const appointmentService=(data)=>{
    return request.post('/appointment',data)
}


//获取预约记录
export const getAppByUserIdService=(data)=>{
    return request.post('/appointment/getByUserId',data)
}

//取消预约
export const cancelService=(data)=>{
    return request.post('/appointment/cancel',data)
}

//完成预约
export const completeService=(data)=>{
    return request.post('/appointment/complete',data)
}

//获取咨询记录
export const getCouByUserIdService=(data)=>{
    return request.post('/appointment/getCouByUserId',data)
}


//获取评估
export const getAssessIdService=(id)=>{
    return request.get('/appointment/getAssess',{
        params: { id:id },
    })
}


//获取当前咨询师的所有记录
export const getAllRecordService=(id)=>{
    return request.get('/appointment/getAllRecord',{
        params: { userid:id },
    })
}